<?php
// load_info_var($cf_controller);
// load_file('notice_class',LIB_PATH);
// var_dump($cf_module, $cf_controller, $cf_action);
load_file('public', MODULE_PATH.$cf_module.'/');
load_file('brand', MODULE_PATH.'common/');

class Brand extends PublicController
{	
	function __construct()
    {
    	parent::__construct();    	  	    
    }

    /**
     * page首页
     * @return [type] [description]
     */
	public function index()
	{			
		
		// echo __NAMESPACE__;
		// echo 'sp/brand';
		$data['name'] = 'xiao';
		$this->smarty->assign($data);
		$this->smarty->mydisplay();				
	}

	/**
	 * action修改
	 * @return [type] [description]
	 */
	public function edit()
	{
		$C_Brand = new C_Brand();
		$data = $_POST;
		$C_Brand->update($data);
			
	}	
}

$class = new Brand();

// $class->getName();
?>